package com.itheima.d6_singleInstance;

// 饿汉式单例 ==> 就是一开始就给你弄好
public class A {
    private static A a = new A();
    private A() {}
    public static A getInstance() {
        return a;
    }
}

